import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		txt: '小鸟游六花',
		val: ''
	},
	getters: {
		getTxt(state) {
			return state.txt;
		},
		getVal(state) {
			return state.val
		}
	},
	mutations: {
		setVal(state, val) {
			return state.val = val;
		}
	},
	actions: {

	},
	modules: {}
})
